﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace Ninesky.Core
{
    /// <summary>
    /// 角色
    /// </summary>

    public class Role
    {
        /// <summary>
        /// 角色ID 主键
        /// </summary>
        [Key]
        public int RoleID { get; set; }

        [Required(ErrorMessage = "必须输入{0}")]
        [StringLength(20, MinimumLength = 3, ErrorMessage ="{}长度为{2}-{1}个字符")]
        [Display(Name ="角色名")]
        public string Name { get; set; }

        [Required(ErrorMessage = "必须输入{0}")]
        [StringLength(200, MinimumLength = 3, ErrorMessage = "{}长度为必须少于{1}个字符")]
        [Display(Name = "角色说明")]
        public string Description { get; set; }
                      
    }
}
